<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    class Phone {
      // 静态属性
      static name = '手机'
      static change() {
        console.log('更换手机')
      }
    }

    let nokia = new Phone();

    console.log(nokia.name);  // undefined
    console.log(Phone.name);    // 手机


  </script>
</body>

</html>